Skip to content

Commit

Permalink
fix(Settings/Budget): don't show renew message with one-time budget (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Jan 31, 2025
1 parent 0a5429f commit b8ce782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/popup/components/Settings/Budget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const BudgetAmount = ({
if (!interval) {
if (changed.recurring && !recurring) {
interval = undefined;
} else if ((changed.recurring && recurring) || changed.amount) {
} else if ((changed.recurring || changed.amount) && recurring) {
interval = `R/${new Date().toISOString()}/P1M`;
} else if (grants.recurring?.interval) {
interval = grants.recurring.interval;
Expand Down

0 comments on commit b8ce782

Please sign in to comment.