Skip to content

Commit e343107

Browse files
committed
fix: frontend error
1 parent cb37af3 commit e343107

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

frontend/src/components/AppsManager.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ const AppsManager: React.FC = () => {
2828
const [error, setError] = useState<string | null>(null);
2929
const [lastCreatedNwcUrl, setLastCreatedNwcUrl] = useState<string | null>(
3030
null
31-
); // State for the last NWC URL
32-
const [copySuccess, setCopySuccess] = useState(""); // State for copy feedback
31+
);
3332

3433
useEffect(() => {
3534
// Fetch existing apps only if we have a token
@@ -108,7 +107,6 @@ const AppsManager: React.FC = () => {
108107
setNewAppName(""); // Clear the input field
109108
console.log("App created:", newApp);
110109
setLastCreatedNwcUrl(newApp.nwcUrl); // Store the NWC URL
111-
setCopySuccess(""); // Reset copy feedback
112110
} catch (err) {
113111
setError(
114112
err instanceof Error ? err.message : "An unknown error occurred"

frontend/src/components/MnemonicManager.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export function MnemonicManager() {
9494
setShowMnemonic(true); // Show the section immediately
9595
// setCurrentMnemonic(null); // Removed
9696
setMnemonicError(null); // Clear previous errors
97-
// setMnemonicCopySuccess(""); // Removed
9897
try {
9998
// Use the helper function defined outside, passing the token from context
10099
const mnemonic = await fetchCurrentMnemonic(token); // Pass token here

0 commit comments

Comments
 (0)