Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya committed Mar 19, 2024
1 parent 7325cbd commit b725540
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions client/src/app/components/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ const Selecter: React.FC<ListProps> = ({ datalist, label, callback }) => {
const [selectedValue, setSelectedValue] = React.useState('');

useEffect(() => {
if (datalist.length > 0) {
setSelectedValue(datalist[0]);
callback && callback(datalist[0]);
}
}, [datalist, callback]);
setSelectedValue(selectedValue || datalist[0]);
callback && callback(selectedValue);
}, [datalist, selectedValue, callback]);

const handleChange = (event: SelectChangeEvent) => {
const selectedValue = event.target.value as string;
Expand Down
6 changes: 3 additions & 3 deletions client/src/pages/offer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ const App = () => {
body: {
credentials: [{
id: routerQuery.claimId as string,
description: 'Non-zero balance credential',
description: "Non-zero balance credential",
}],
transaction_data: {
contract_address: addHexPrefix(routerQuery.contractAddress as string),
method_id: '0x37c1d9ff',
method_id: "0x37c1d9ff",
chain_id: 80001,
network: 'polygon-mumbai',
network: "polygon-mumbai",
}
},
from: routerQuery.issuer as string,
Expand Down

0 comments on commit b725540

Please sign in to comment.