Skip to content

Commit 323ebfe

Browse files
committed
fix: reorder parameters in get2FaConfirmationResult for consistency
1 parent b30f22c commit 323ebfe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

custom/TwoFAModal.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
declare global {
8686
interface Window {
8787
adminforthTwoFaModal: {
88-
get2FaConfirmationResult: (
89-
verifyingCallback?: (confirmationResult: string) => Promise<boolean>,
90-
title?: string
88+
get2FaConfirmationResult: (
89+
title?: string,
90+
verifyingCallback?: (confirmationResult: string) => Promise<boolean>
9191
) => Promise<any>;
9292
};
9393
}
@@ -127,7 +127,7 @@
127127
128128
129129
window.adminforthTwoFaModal = {
130-
get2FaConfirmationResult: (verifyingCallback?: (confirmationResult: string) => Promise<boolean>, title?: string) =>
130+
get2FaConfirmationResult: (title?: string, verifyingCallback?: (confirmationResult: string) => Promise<boolean>) =>
131131
new Promise(async (resolve, reject) => {
132132
if (modelShow.value) throw new Error('Modal is already open');
133133
const skipAllowModal = await checkIfSkipAllowModal();

0 commit comments

Comments
 (0)