mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Apply suggestions from code review
This commit is contained in:
parent
7b529e05bf
commit
76ab75d049
@ -34,8 +34,8 @@ export class SendCoinsClient {
|
||||
async voteForSendCoins(args: EncryptedTransferArgs): Promise<string | null> {
|
||||
logger.debug('voteForSendCoins against endpoint=', this.endpoint)
|
||||
try {
|
||||
const { data } = await this.client.rawRequest<any>(voteForSendCoinsQuery, { args })
|
||||
const responseJwt: string = data?.voteForSendCoins
|
||||
const { data } = await this.client.rawRequest<{ voteForSendCoins: string }>(voteForSendCoinsQuery, { args })
|
||||
const responseJwt = data?.voteForSendCoins
|
||||
if (responseJwt) {
|
||||
logger.debug('received response jwt', responseJwt)
|
||||
return responseJwt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user