File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
govtool/frontend/src/components/organisms Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ changes.
1414
1515- Add support for base64 encoded images [ Issue 2633] ( https://github.com/IntersectMBO/govtool/issues/2633 )
1616- Add searching for metadata [ Issue 2634] ( https://github.com/IntersectMBO/govtool/issues/2634 )
17+ - Allow delegation to inactive DRep [ Issue 2589] ( https://github.com/IntersectMBO/govtool/issues/2589 )
1718
1819### Fixed
1920
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ export const DRepCard = ({
298298 { t ( "viewDetails" ) }
299299 </ Button >
300300 ) }
301- { status === "Active" &&
301+ { [ "Active" , "Inactive" ] . includes ( status ) &&
302302 isConnected &&
303303 onDelegate &&
304304 ! isMyDrep &&
@@ -311,7 +311,7 @@ export const DRepCard = ({
311311 { t ( "delegate" ) }
312312 </ Button >
313313 ) }
314- { status === "Active" && ! isConnected && (
314+ { [ "Active" , "Inactive" ] . includes ( status ) && ! isConnected && (
315315 < Button
316316 data-testid = { `${ view } -connect-to-delegate-button` }
317317 onClick = { openChooseWalletModal }
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export const DRepDetailsCard = ({
146146 { /* BASIC INFO END */ }
147147
148148 { /* BUTTONS */ }
149- { isConnected && status === "Active" && ! isMyDrep && (
149+ { isConnected && [ "Active" , "Inactive" ] . includes ( status ) && ! isMyDrep && (
150150 < Button
151151 data-testid = "delegate-button"
152152 disabled = { ! ! pendingTransaction ?. delegate }
@@ -161,7 +161,7 @@ export const DRepDetailsCard = ({
161161 { t ( "delegate" ) }
162162 </ Button >
163163 ) }
164- { ! isConnected && status === "Active" && (
164+ { ! isConnected && [ "Active" , "Inactive" ] . includes ( status ) && (
165165 < Button
166166 data-testid = "connect-to-delegate-button"
167167 onClick = { ( ) =>
You can’t perform that action at this time.
0 commit comments