NostrLoginModal: fix handleClose
This commit is contained in:
parent
7adb676653
commit
463f260b2e
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ interface INostrLoginModal {
|
||||||
const NostrLoginModal: React.FC<INostrLoginModal> = ({ onClose }) => {
|
const NostrLoginModal: React.FC<INostrLoginModal> = ({ onClose }) => {
|
||||||
const [step, setStep] = useState<Step>(window.nostr ? 'extension' : 'key-add');
|
const [step, setStep] = useState<Step>(window.nostr ? 'extension' : 'key-add');
|
||||||
|
|
||||||
const handleClose = () => onClose('NOSTR_SIGNUP');
|
const handleClose = () => onClose('NOSTR_LOGIN');
|
||||||
|
|
||||||
switch (step) {
|
switch (step) {
|
||||||
case 'extension':
|
case 'extension':
|
||||||
|
|
Loading…
Reference in a new issue