Skip to content

Commit

Permalink
fix: donations with value column (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu authored Dec 28, 2022
1 parent abf2b0b commit ecc8f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/DonateDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useSafeAppsSDK } from "@gnosis.pm/safe-apps-react-sdk";
import { GenericModal, Button, Select, TextFieldInput, Icon } from "@gnosis.pm/safe-react-components";
import { Button, GenericModal, Icon, Select, TextFieldInput } from "@gnosis.pm/safe-react-components";
import { InputAdornment, Typography } from "@material-ui/core";
import { BigNumber, ethers } from "ethers";
import { useEffect, useState } from "react";
Expand Down Expand Up @@ -72,6 +72,7 @@ export const DonateDialog = ({
.replace("token_address", selectedToken === "0x0" ? "" : selectedToken)
.replace("receiver", DONATION_ADDRESS)
.replace("amount", selectedAmount)
.replace("value", selectedAmount)
.replace("id", "");

onSubmit(`${csvText}\n${donationCSVRow}`);
Expand Down
4 changes: 2 additions & 2 deletions src/components/FAQModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Text, Title, Divider, Button, GenericModal, Link } from "@gnosis.pm/safe-react-components";
import { Button, Divider, GenericModal, Icon, Link, Text, Title } from "@gnosis.pm/safe-react-components";
import { Fab } from "@material-ui/core";
import { useState } from "react";

Expand Down Expand Up @@ -98,7 +98,7 @@ export const FAQModal: () => JSX.Element = () => {
</Title>
<Text size="lg">
As the BEP-20 standard is an extension of ERC20 they are supported by this app. Just pass{" "}
<code>erc20</code> as <code>token_id</code>.
<code>erc20</code> as <code>token_type</code>.
</Text>
<Divider />
<Title size="md" strong>
Expand Down

0 comments on commit ecc8f9a

Please sign in to comment.