Skip to content

Commit

Permalink
fix: lnurl quickfixes
Browse files Browse the repository at this point in the history
the LNURL routes have been missing on the options page
  • Loading branch information
bumi committed Aug 24, 2022
1 parent b6311c2 commit d62c6d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/app/router/Options/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import Navbar from "@components/Navbar";
import Accounts from "@screens/Accounts";
import ConfirmPayment from "@screens/ConfirmPayment";
import Keysend from "@screens/Keysend";
import LNURLAuth from "@screens/LNURLAuth";
import LNURLChannel from "@screens/LNURLChannel";
import LNURLPay from "@screens/LNURLPay";
import LNURLWithdraw from "@screens/LNURLWithdraw";
import TestConnection from "@screens/Options/TestConnection";
import Publisher from "@screens/Publisher";
import Publishers from "@screens/Publishers";
Expand Down Expand Up @@ -45,10 +48,13 @@ function Options() {
<Route index element={<Publishers />} />
</Route>
<Route path="send" element={<Send />} />
<Route path="confirmPayment" element={<ConfirmPayment />} />
<Route path="keysend" element={<Keysend />} />
<Route path="receive" element={<Receive />} />
<Route path="lnurlPay" element={<LNURLPay />} />
<Route path="confirmPayment" element={<ConfirmPayment />} />
<Route path="lnurlChannel" element={<LNURLChannel />} />
<Route path="lnurlWithdraw" element={<LNURLWithdraw />} />
<Route path="lnurlAuth" element={<LNURLAuth />} />
<Route path="settings" element={<Settings />} />
<Route path="accounts">
<Route
Expand Down
2 changes: 1 addition & 1 deletion src/app/screens/LNURLAuth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function LNURLAuth() {
// ATTENTION: if this LNURL is called through `webln.lnurl` then we immediately return and return the response. This closes the window which means the user will NOT see the above successAction.
// We assume this is OK when it is called through webln.
if (navState.isPrompt) {
return await msg.reply(response);
msg.reply(response);
}
} catch (e) {
console.error(e);
Expand Down
2 changes: 1 addition & 1 deletion src/app/screens/LNURLWithdraw/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function LNURLWithdraw() {
// ATTENTION: if this LNURL is called through `webln.lnurl` then we immediately return and return the response. This closes the window which means the user will NOT see the above successAction.
// We assume this is OK when it is called through webln.
if (navState.isPrompt) {
return await msg.reply(response);
msg.reply(response.data);
}
} catch (e) {
console.error(e);
Expand Down

0 comments on commit d62c6d1

Please sign in to comment.