Refactor providers call
This commit is contained in:
@ -28,7 +28,7 @@ export function CreateFamilyDialog(p: {
|
||||
await FamilyApi.CreateFamily(name);
|
||||
setName("");
|
||||
p.onCreated();
|
||||
await alert.alert("La famille a été créée avec succès !");
|
||||
await alert("La famille a été créée avec succès !");
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
setError(true);
|
||||
|
@ -32,7 +32,7 @@ export function JoinFamilyDialog(p: {
|
||||
case JoinFamilyResult.Success:
|
||||
setCode("");
|
||||
p.onJoined();
|
||||
await alert.alert("La famille a été rejointe avec succès !");
|
||||
await alert("La famille a été rejointe avec succès !");
|
||||
break;
|
||||
|
||||
case JoinFamilyResult.TooManyRequests:
|
||||
|
Reference in New Issue
Block a user