Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix disable reorder button and removed (linkList.length !== 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketmp committed Oct 4, 2023
1 parent 103d827 commit 66a568a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/account/manage/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function ManageLinks({ BASE_URL, username, links }) {
Add Link
</Button>

{linkList.length !== 0 && !reorder && (
{!reorder && (
<Button onClick={() => setReorder(true)} disable={linkList.length < 2}>
<ArrowPathIcon className="h-5 w-5 mr-2" />
REORDER
Expand Down

0 comments on commit 66a568a

Please sign in to comment.