Skip to content

Commit

Permalink
iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Feb 16, 2024
1 parent 5c022ee commit 9447f94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export default function CreatorsTabSection() {
[2],
[previousCollabAction]
);

//There's a risk here.
//If the user refreshes the page before the transaction is mined, the UI will show the old value.
const updatedIndex = await api!.updateIndex(viewedIndex?.id, {
signerFunction: cid,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const CreatorSettings: FC<CreatorSettingsProps> = ({
const [conditions, setConditions] = useState<any>([]);
const addOrStatements = (c: AccessControlCondition[]) =>
c.flatMap((el, i) => (i === c.length - 1 ? el : [el, { operator: "or" }])).map(a => {
// @ts-ignore
delete a.metadata
return a
});
Expand Down

0 comments on commit 9447f94

Please sign in to comment.