File tree 3 files changed +10
-4
lines changed
src/components/_overlays/SendTransferDialogs
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 4.10.2] - 2023-10-12
9
+
10
+ ### Fixed
11
+
12
+ - Fixed issues with channel funds withdrawal
13
+
8
14
## [ 4.10.1] - 2023-10-11
9
15
10
16
### Changed
@@ -166,7 +172,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
166
172
### Fixed
167
173
168
174
- Fixed bug with infinite loop in studio
169
- - Fixed error with WASM
175
+ - Fixed error with WASM
170
176
171
177
## [ 4.4.2] - 2023-08-09
172
178
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @joystream/atlas" ,
3
3
"description" : " UI for consuming Joystream - a user governed video platform" ,
4
- "version" : " 4.10.1 " ,
4
+ "version" : " 4.10.2 " ,
5
5
"license" : " GPL-3.0" ,
6
6
"scripts" : {
7
7
"start" : " vite" ,
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export const SendFundsDialog: FC<SendFundsDialogProps> = ({
194
194
}
195
195
196
196
const handleMaxClick = async ( ) => {
197
- const value = Math . floor ( hapiBnToTokenNumber ( accountBalance ) * 100 ) / 100
197
+ const value = Math . floor ( hapiBnToTokenNumber ( isWithdrawalMode ? channelBalance : accountBalance ) * 100 ) / 100
198
198
setValue ( 'amount' , value , {
199
199
shouldTouch : true ,
200
200
shouldDirty : true ,
@@ -256,7 +256,7 @@ export const SendFundsDialog: FC<SendFundsDialogProps> = ({
256
256
accountBalance : ( value ) => {
257
257
if ( isWithdrawalMode && value && tokenNumberToHapiBn ( value ) . gt ( channelBalance ) ) {
258
258
return `Not enough tokens in your channel balance.`
259
- } else if ( value && tokenNumberToHapiBn ( value ) . gte ( accountBalance ) ) {
259
+ } else if ( ! isWithdrawalMode && value && tokenNumberToHapiBn ( value ) . gte ( accountBalance ) ) {
260
260
return `Not enough tokens in your account balance.`
261
261
}
262
262
return true
You can’t perform that action at this time.
0 commit comments