fix: Account delete modal
This commit is contained in:
parent
af1ea68a32
commit
02fe6fb9e1
2 changed files with 7 additions and 6 deletions
|
|
@ -110,19 +110,19 @@ Modal.Delete = function (props: ModalDeleteProps) {
|
|||
}
|
||||
|
||||
function onCancel() {
|
||||
if (props.visible() === true)
|
||||
props.setVisible(false);
|
||||
|
||||
if (props.onCancel)
|
||||
props.onCancel();
|
||||
|
||||
if (props.visible() === true)
|
||||
props.setVisible(false);
|
||||
}
|
||||
|
||||
function onDelete() {
|
||||
if (props.visible() === true)
|
||||
props.setVisible(false);
|
||||
|
||||
if (props.onDelete)
|
||||
props.onDelete();
|
||||
|
||||
if (props.visible() === true)
|
||||
props.setVisible(false);
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ export function AccountControllerProvider(props: ParentProps) {
|
|||
}
|
||||
|
||||
async function _forceRemoveAccount(uuid: string | undefined) {
|
||||
console.log(uuid);
|
||||
if (uuid === undefined)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue