Skip to content

Commit c945eb2

Browse files
authored
Fix loading states for modals (#36)
* signing transactions and granting access should signal that buttons are working * don't await rejection * change from async to sync function
1 parent adc73b8 commit c945eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popup/views/SignTransaction/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const SignTransaction = () => {
9494
const publicKey = useSelector(publicKeySelector);
9595
const [isConfirming, setIsConfirming] = useState(false);
9696

97-
const rejectAndClose = async () => {
97+
const rejectAndClose = () => {
9898
rejectAccess();
9999
window.close();
100100
};

0 commit comments

Comments
 (0)