Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve issue with closing button on the Referanda unlock modal #1547

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
const [txInfo, setTxInfo] = useState<TxInfo | undefined>();
const [estimatedFee, setEstimatedFee] = useState<Balance>();
const [params, setParams] = useState<SubmittableExtrinsic<'promise', ISubmittableResult>[]>();
const [step, setStep] = useState<number>(STEPS.REVIEW);
const [step, setStep] = useState<number>(STEPS.INDEX);

const selectedProxyAddress = selectedProxy?.delegate as unknown as string;

Expand Down Expand Up @@ -113,7 +113,7 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
setDisplayPopup(undefined);
}, [setDisplayPopup]);

const closeProxy = useCallback(() => setStep(STEPS.REVIEW), []);
const closeProxy = useCallback(() => setStep(STEPS.INDEX), []);

return (
<DraggableModal onClose={onClose} open={show}>
Expand All @@ -128,7 +128,7 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
{isPasswordError &&
<WrongPasswordAlert />
}
{[STEPS.REVIEW, STEPS.SIGN_QR].includes(step) &&
{[STEPS.INDEX, STEPS.SIGN_QR].includes(step) &&
<>
<SubTitle label={t('Review')} style={{ paddingTop: isPasswordError ? '10px' : '25px' }} />
<Container disableGutters sx={{ px: '30px' }}>
Expand Down
Loading