Function
removeNonexistentNotes
(tree: NoteTreeItem[], notes: Notes)
Source from the content-addressed store, hash-verified
| 336 | // Show toast if the user successfully subscribed to Notabase |
| 337 | const plan = PRICING_PLANS[planId as PlanId]; |
| 338 | if (plan) { |
| 339 | toast.success(`Congrats! You now have Notabase ${plan.name} 🎉`); |
| 340 | } else { |
| 341 | toast.success('Congrats! Your payment was processed successfully 🎉'); |
| 342 | } |
| 343 | router.push( |
| 344 | { pathname: router.pathname, query: otherQueryParams }, |
| 345 | undefined, |
| 346 | { shallow: true } |
| 347 | ); |
| 348 | } |
| 349 | }, [router]); |
| 350 | |
Tested by
no test coverage detected