Skip to content

Commit

Permalink
Set balance to 0 on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Dec 28, 2023
1 parent 9ddd13a commit 17c0b88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/webln.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function WebLNProvider ({ children }) {
const clearProvider = () => {
setProvider(null)
setInfo(null)
setBalance(0)
}

useEffect(() => {
Expand Down

0 comments on commit 17c0b88

Please sign in to comment.