Skip to content

Commit

Permalink
fix: paymaster default to sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
jstinhw committed Apr 17, 2024
1 parent f48c43a commit a512df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Provider/PaymasterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export function PaymasterProvider({ children }: PaymasterModalProviderProps) {
useEffect(() => {
const updatePaymaster = () => {
if (!sessions || Object.keys(sessions).length === 0) return;
const array = Array.from([{ type: "NO" as PaymasterType }]).concat(
const array = Array.from([{ type: "SPONSOR" as PaymasterType }]).concat(
Object.keys(sessions).map((sessionId) => ({
sessionId: sessionId,
type: "NO" as PaymasterType,
type: "SPONSOR" as PaymasterType,
}))
);
setPaymasterSetting(array);
Expand Down

0 comments on commit a512df4

Please sign in to comment.