Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Dec 18, 2023
1 parent 37ce836 commit bb662d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/screens/Nostr/ConfirmEncryptOrDecrypt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ function NostrConfirmEncryptOrDecrypt() {
const { t: tCommon } = useTranslation("common");
const navState = useNavigationState();
const origin = navState.origin as OriginData;
const action = navState.args?.description?.action;
const peer = navState.args?.description?.peer;
const message = navState.args?.description?.message;
const action = navState.args?.encryptOrDecrypt?.action;
const peer = navState.args?.encryptOrDecrypt?.peer;
const message = navState.args?.encryptOrDecrypt?.message;

const [loading, setLoading] = useState(false);
const [showDetails, setShowDetails] = useState(false);
Expand Down
5 changes: 3 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,14 @@ export type NavigationState = {
message?: string;
event?: Event;
sigHash?: string;
description?: {

// nostr
encryptOrDecrypt?: {
action: "encrypt" | "decrypt";
peer: string;
message: string;
};

details?: string;
psbt?: string;
requestPermission: {
method: string;
Expand Down

0 comments on commit bb662d6

Please sign in to comment.