Skip to content

Сулейманов Эмиль#13

Open
theSweater23 wants to merge 1 commit intoRTF-Angular-2021:masterfrom
theSweater23:suleymanov_emil
Open

Сулейманов Эмиль#13
theSweater23 wants to merge 1 commit intoRTF-Angular-2021:masterfrom
theSweater23:suleymanov_emil

Conversation

@theSweater23
Copy link

No description provided.


public takeMoney(moneyUnits: Array<IMoneyUnit>) {
this._repository = this._repository.concat(moneyUnits);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет реализации
0 балов


public authorize(userId: any, cardId: any, cardPin: any): any {

public authorize(userId: string, cardId: string, cardPin: string): boolean {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот метод будет работать не корректно

this._users.forEach(user => {
user.cards.forEach(card => {
if (card.id === cardId)
return true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот метод будет работать не корректно

})
})
return false;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 балов

public getCardById(cardId: string): ICard {
this._cards.forEach(card => {
if (card.id === cardId)
return card;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот return завершит цикл, но не вернёт значение функции getCardById

this._user.name = newName;
return true;
} else
return false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не забывай выделять блоки скобками фигурными

return this.changeUserSurname(argsForChangeFunction);
else if (option === UserSettingOptions.newCard)
return this.registerForUserNewCard(argsForChangeFunction);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 бала

this._moneyRepository.giveOutMoney(sum, toCurrency);
}
return null;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет решения
0 балов

{
this._currencyConverterModule.convertMoneyUnits(fromCurrency, toCurrency, moneyUnits);
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 бала

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants