fix more typos
This commit is contained in:
parent
2a619eadbe
commit
4c2048d5d4
@ -37,7 +37,7 @@ APIs:
|
|||||||
Dependency Injection (DI):
|
Dependency Injection (DI):
|
||||||
DI is a useful pattern when components need to be replaced by mocks or have
|
DI is a useful pattern when components need to be replaced by mocks or have
|
||||||
multiple co-existing implementations. But DI also makes code overly generic,
|
multiple co-existing implementations. But DI also makes code overly generic,
|
||||||
bureaucratic and less readble. Only use DI if there is a definite need for it,
|
bureaucratic and less readable. Only use DI if there is a definite need for it,
|
||||||
do not use it by default. Inject individual dependencies via class
|
do not use it by default. Inject individual dependencies via class
|
||||||
constructors and avoid service locators.
|
constructors and avoid service locators.
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ export function createRefundPage(): JSX.Element {
|
|||||||
|
|
||||||
const talerRefundUri = url.searchParams.get("talerRefundUri");
|
const talerRefundUri = url.searchParams.get("talerRefundUri");
|
||||||
if (!talerRefundUri) {
|
if (!talerRefundUri) {
|
||||||
throw Error("taler refund URI requred");
|
throw Error("taler refund URI required");
|
||||||
}
|
}
|
||||||
|
|
||||||
return <RefundStatusView talerRefundUri={talerRefundUri} />;
|
return <RefundStatusView talerRefundUri={talerRefundUri} />;
|
||||||
|
Loading…
Reference in New Issue
Block a user