mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-26 17:52:18 +01:00
show event on failed decrypt
This commit is contained in:
parent
cf75336e65
commit
56c5f077ec
@ -6,6 +6,7 @@ import { useDecryptionContainer } from "../../../providers/global/dycryption-pro
|
||||
import useCurrentAccount from "../../../hooks/use-current-account";
|
||||
import { getDMRecipient, getDMSender } from "../../../helpers/nostr/dms";
|
||||
import { NostrEvent } from "../../../types/nostr-event";
|
||||
import DebugEventButton from "../../../components/debug-modal/debug-event-button";
|
||||
|
||||
export default function DecryptPlaceholder({
|
||||
children,
|
||||
@ -39,7 +40,8 @@ export default function DecryptPlaceholder({
|
||||
<Alert status="error">
|
||||
<AlertIcon />
|
||||
<AlertDescription>{error.message}</AlertDescription>
|
||||
<Button isLoading={loading} leftIcon={<UnlockIcon />} onClick={decrypt} size="sm" ml="auto">
|
||||
<DebugEventButton event={message} size="sm" ml="auto" mr="2" />
|
||||
<Button isLoading={loading} leftIcon={<UnlockIcon />} onClick={decrypt} size="sm">
|
||||
Try again
|
||||
</Button>
|
||||
</Alert>
|
||||
|
Loading…
x
Reference in New Issue
Block a user