Fix NameEditor reservations handling of errors
This commit is contained in:
@@ -49,7 +49,6 @@ const checkNameAvailability = async () => {
|
|||||||
reservationState.value = "reserved";
|
reservationState.value = "reserved";
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
reservationState.value = "unavailable"; // Handle API failure case
|
reservationState.value = "unavailable"; // Handle API failure case
|
||||||
reservationId.value = undefined;
|
|
||||||
} finally {
|
} finally {
|
||||||
emits('update:name', name.value);
|
emits('update:name', name.value);
|
||||||
emits('update:creatorNameReservationId', reservationId.value);
|
emits('update:creatorNameReservationId', reservationId.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user