Skip to content

Commit 5ad9493

Browse files
Copilotlarsdecker
andcommitted
Fix syntax error in dialog.ts from merge conflict
Co-authored-by: larsdecker <1968186+larsdecker@users.noreply.github.com>
1 parent 9857da2 commit 5ad9493

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

packages/fints/src/dialog.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,8 @@ export class Dialog extends DialogConfig {
282282
* @see https://www.hbci-zka.de/ for FinTS specification
283283
*/
284284
public async handleDecoupledTan(
285-
// Ensure TAN methods are available before attempting decoupled TAN handling
286-
if (!this.tanMethods || this.tanMethods.length === 0) {
287-
throw new Error(
288-
"No TAN methods are available for decoupled TAN handling. " +
289-
"Ensure the dialog is properly initialized and TAN methods have been retrieved.",
290-
);
291-
}
292-
293-
// Find the appropriate TAN method (prefer one with decoupled support)
294-
const tanMethod =
295-
this.tanMethods.find((m) => m.decoupledMaxStatusRequests !== undefined) || this.tanMethods[0];
285+
transactionReference: string,
286+
challengeText: string,
296287
statusCallback?: DecoupledTanStatusCallback,
297288
): Promise<Response> {
298289
// Ensure TAN methods are available before attempting decoupled TAN handling

0 commit comments

Comments
 (0)