Skip to content

Commit 287d8e6

Browse files
authored
Release v4.10.2
2 parents e049aee + 9793ed6 commit 287d8e6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Diff for: CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.10.2] - 2023-10-12
9+
10+
### Fixed
11+
12+
- Fixed issues with channel funds withdrawal
13+
814
## [4.10.1] - 2023-10-11
915

1016
### Changed
@@ -166,7 +172,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
166172
### Fixed
167173

168174
- Fixed bug with infinite loop in studio
169-
- Fixed error with WASM
175+
- Fixed error with WASM
170176

171177
## [4.4.2] - 2023-08-09
172178

Diff for: packages/atlas/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@joystream/atlas",
33
"description": "UI for consuming Joystream - a user governed video platform",
4-
"version": "4.10.1",
4+
"version": "4.10.2",
55
"license": "GPL-3.0",
66
"scripts": {
77
"start": "vite",

Diff for: packages/atlas/src/components/_overlays/SendTransferDialogs/SendFundsDialog.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const SendFundsDialog: FC<SendFundsDialogProps> = ({
194194
}
195195

196196
const handleMaxClick = async () => {
197-
const value = Math.floor(hapiBnToTokenNumber(accountBalance) * 100) / 100
197+
const value = Math.floor(hapiBnToTokenNumber(isWithdrawalMode ? channelBalance : accountBalance) * 100) / 100
198198
setValue('amount', value, {
199199
shouldTouch: true,
200200
shouldDirty: true,
@@ -256,7 +256,7 @@ export const SendFundsDialog: FC<SendFundsDialogProps> = ({
256256
accountBalance: (value) => {
257257
if (isWithdrawalMode && value && tokenNumberToHapiBn(value).gt(channelBalance)) {
258258
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)) {
260260
return `Not enough tokens in your account balance.`
261261
}
262262
return true

0 commit comments

Comments
 (0)