File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,12 +256,16 @@ const Wizard: NextPageWithLayout = () => {
256256 }
257257 )
258258
259- const regionError = smartRegionEnabled ? availableRegionsError : defaultRegionError
260- const defaultRegion = smartRegionEnabled
261- ? availableRegionsData ?. recommendations . smartGroup . name
262- : defaultProvider === 'AWS_NIMBUS'
259+ const regionError =
260+ smartRegionEnabled && defaultProvider !== 'AWS_NIMBUS'
261+ ? availableRegionsError
262+ : defaultRegionError
263+ const defaultRegion =
264+ defaultProvider === 'AWS_NIMBUS'
263265 ? AWS_REGIONS . EAST_US . displayName
264- : _defaultRegion
266+ : smartRegionEnabled
267+ ? availableRegionsData ?. recommendations . smartGroup . name
268+ : _defaultRegion
265269
266270 const { can : isAdmin } = useAsyncCheckPermissions ( PermissionAction . CREATE , 'projects' )
267271
You can’t perform that action at this time.
0 commit comments