We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dab9e8 + 0bb7a51 commit e9fbac6Copy full SHA for e9fbac6
src/components/createLegionForm/CreateLegionForm.js
@@ -155,6 +155,8 @@ const CreateLegionForm = ({ currentUser }) => {
155
};
156
157
const result = await submitLegion(updatedFormData);
158
+ console.log('result', result)
159
+ console.log('updated form data', updatedFormData)
160
if (result.success) {
161
await incrementUserLegions(currentUser.uid);
162
const newLegionId = result.id;
@@ -163,6 +165,7 @@ const CreateLegionForm = ({ currentUser }) => {
163
165
alert('Error creating legion.');
164
166
}
167
} catch (error) {
168
+
169
console.error('Error creating legion:', error);
170
alert('An error occurred while creating the legion.');
171
0 commit comments